#ifndef RGBA_H
#define RGBA_H
#include "Color.h"
namespace swfstream {
class RGBA: public Color {
public:
	byte r;
	byte g;
	byte b;
	byte a;
	void print();
	static RGBA *from_file(FILE* f);
	virtual TiXmlElement* toTiXmlElement() {
		TiXmlElement* r = new TiXmlElement("RGBA");
		r->SetAttribute("r", this->r);
		r->SetAttribute("g", g);
		r->SetAttribute("b", b);
		r->SetAttribute("a", a);
		return r;
	}
	//	size_t size_in_file() const{return 4;}
};
}

#endif
